package com.biz.primus.ms.order.dao.po;

import com.biz.primus.ms.base.jpa.po.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * 退货订单描述
 *
 * @author Tiger Feng
 * @date 2017年11月18日
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "ord_return_order_item")
public class ReturnOrderItem extends BaseEntity {

    @ManyToOne
    private ReturnOrder returnOrder;

    @OneToOne
    @JoinColumn(name = "order_item_id", nullable = false)
    private OrderItem orderItem;
    // 退货单商品明细编码
    @Column(length = 64, unique = true)
    private String itemCode;
    /**
     * 商品数量
     */
    private Integer quantity = 0;
}
